#include <vector>
#include <iostream>
#include <algorithm>
using std::cin;
using std::cout;
using std::endl;
using std::vector;
using std::swap;

void readList(vector<int>& arr)
{
    int t;
    for (int i = 0; i < 10; ++i)
    {
        cin >> t;
        arr.push_back(t);
    }
}

vector<int> readList(int * arr, int len)
{
    vector<int> v;
    for (int i = 0; i < len; ++i)
        v.push_back(arr[i]);
    return v;
}

void showList(vector<int> arr)
{
    for (int i = 0; i < arr.size(); ++i)
        cout << arr[i] << " ";
    cout << std::endl;
}